package com.bluesea.report.service.menu.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bluesea.report.dao.MenuDao;
import com.bluesea.report.entity.Menu;
import com.bluesea.report.service.menu.IMenuService;

@Service("menuServiceImpl")
public class MenuServiceImpl implements IMenuService {

	@Resource
	private MenuDao menuDao;
	
	@Override
	public List<Menu> getMenuAll() {
		List<Menu> menuList = new ArrayList<Menu>();
		try {
			menuList = menuDao.getMenuAll();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return menuList;
	}

}
